package com.kcsj.service;

import com.kcsj.dao.TotalNumberDao;
import com.kcsj.util.JdbcHelper;

import java.sql.Connection;
import java.sql.SQLException;

public class TotalNumberService {
    private TotalNumberDao totalNumberDao = TotalNumberDao.getInstance();
    private static TotalNumberService totalNumberService = new TotalNumberService();

    public TotalNumberService() {
    }
    public static TotalNumberService getInstance(){
        return TotalNumberService.totalNumberService;
    }
    public Integer count(String columnName, String tableName) throws SQLException {
        Connection conn = JdbcHelper.getConn();
        //int count = totalNumberDao.count(conn, columnName, tableName);
        JdbcHelper.close(conn);
        return 1;
    }
}
